Skip to content

Conversation

philipphofmann
Copy link
Member

@philipphofmann philipphofmann commented Aug 13, 2025

Ideally, we would remove the method delayNonBlocking, but that requires a few changes to a handful of tests. Instead, we remove the dispatch group wait call, which could hang tests forever in CI. Now tests using delayNonBlocking will fail with an assert instead.

I had to define the method as an extension to XCTestCase to use XCTestCase.wait.

Contributes to #5789

#skip-changelog

Ideally we would remove the method delayNonBlocking, but that requires
a few changes to a handful of tests. Instead, we remove the dispatch
group wait call which could hang tests forever in CI. Now tests using
delayNonBlocking will fail with an assert instead.
Copy link
Member

@philprime philprime left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link

codecov bot commented Aug 13, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 86.675%. Comparing base (8d944ac) to head (1e1e2ff).
⚠️ Report is 1 commits behind head on main.
✅ All tests successful. No failed tests found.

Additional details and impacted files

Impacted file tree graph

@@              Coverage Diff              @@
##              main     #5901       +/-   ##
=============================================
- Coverage   86.686%   86.675%   -0.011%     
=============================================
  Files          423       423               
  Lines        36527     36527               
  Branches     17281     17277        -4     
=============================================
- Hits         31664     31660        -4     
- Misses        4815      4821        +6     
+ Partials        48        46        -2     

see 8 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 8d944ac...1e1e2ff. Read the comment docs.

@philipphofmann philipphofmann merged commit e8da57d into main Aug 13, 2025
54 checks passed
@philipphofmann philipphofmann deleted the test/use-xctestexcpectation-delay-non-blocking branch August 13, 2025 07:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants